Total Complexity | 57 |
Dependencies | 5 |
Dependents | 1 |
Total lines | 594 |
Lines of code | 399 |
Logical lines of code | 132 |
Comment lines | 122 |
Methods | 16 |
Properties | 0 |
Method | Rating | Maintainability | Complexity | Lines of code |
---|---|---|---|---|
prepare_item_for_response() | 41 | 16 | 60 | |
prepare_item_for_database() | 49 | 14 | 31 | |
get_item_schema() | 39 | 1 | 87 | |
get_items() | 56 | 4 | 18 | |
get_collection_params() | 43 | 1 | 59 | |
register_routes() | 45 | 1 | 53 | |
prepare_response_for_collection() | 62 | 3 | 12 | |
custom_sanitize_filter_data() | 67 | 3 | 9 | |
prepare_links() | 59 | 2 | 15 | |
update_item() | 63 | 2 | 11 | |
permissions_check() | 63 | 2 | 11 | |
get_item() | 65 | 2 | 9 | |
create_item() | 65 | 2 | 9 | |
delete_item() | 67 | 2 | 8 | |
__construct() | 75 | 1 | 4 | |
products_permissions_check() | 80 | 1 | 3 |